package com.pkk.cloud.support.admin.constand;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @description: 授权资源的常量类
 * @author: peikunkun
 * @create: 2020-04-18 15:24
 **/
public class OauthResourceConstand {

  /**
   * 默认资源的展示
   */
  public static final boolean DEFAULT_RESOURCE_IS_SHOW_TRUE = true;

  /**
   * 是否删除
   */
  public static final boolean DEFAULT_RESOURCE_IS_DELETED_FALSE = false;

  /**
   * 默认的资源-0
   */
  public static final Long DEFAULT_RESOURCE_PID_ZONE = 0L;


  /**
   * @Description:资源级别
   * @Author: peikunkun
   * @Date: 2020/4/18 0018 下午 3:25
   */
  @Getter
  @AllArgsConstructor
  public enum ResourceLevel {

    /**
     * 类别
     */
    CATEORY(1),

    /**
     *
     */
    MENU(2),

    /**
     * 按钮
     */
    BUTTON(3),
    ;

    /**
     * 级别
     */
    private Integer level;
  }


  /**
   * @Description: 类型 0-分类 1-菜单 2-按钮
   * @Author: peikunkun
   * @Date: 2020/4/18 0018 下午 3:30
   */
  @Getter
  @AllArgsConstructor
  public enum ResourceType {
    /**
     * 类别
     */
    CATEORY(0),

    /**
     *
     */
    MENU(1),

    /**
     * 按钮
     */
    BUTTON(2),
    ;

    /**
     * 级别
     */
    private Integer type;
  }

}
